import fetch from '@/utils/fetch'

export function apiGetMainDepartmentList (listQuery) {
  return fetch({
    url: '/api/v1/user/all',
    method: 'GET',
    params: listQuery
  })
}
export function apiUpdateAuditManager(moduleDto) {
  return fetch({
    url: '/api/v1/config/updateAudit',
    method: 'PUT',
    data: moduleDto
  })
}

export function apiGetSpareDistributeList() {
  return fetch({
    url: '/api/v1/config/spare/distributeList',
    method: 'GET'
  })
}

export function apiGetAllAuditList() {
  return fetch({
    url: '/api/v1/config/list',
    method: 'GET'
  })
}
